package com.xiaoyi.springboot.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class RabbitMqRerurnBackImpl implements RabbitMqRerurnBack {
    private static final Logger LOGGER = LoggerFactory.getLogger(RabbitMqRerurnBackImpl.class);

    public RabbitMqRerurnBackImpl() {
    }

    @Override
    public void returnCallback(String exChange, String routKey, String content) {
        LOGGER.error("<<<<<<<<<< 发送失败: exChange: {}, routKey: {}, content: {}", new Object[]{exChange, routKey, content});
    }
}
